const express=require('express');
//应用对象
const app=express();

app.get('/:id.html',(req,res)=>{
   console.log(req.params.id);
   //params是req对象的属性,存储路由的参数 要和路由名字一致
    console.log(req.url);
    console.log(req.method);
    console.log(req.ip);
    res.end('express');
});

app.listen(8000,()=>{

    console.log('03服务启动成功');
});
